/*
 * Node.cpp
 *
 *  Created on: Apr 20, 2011
 *      Author: gilang
 */

#include "Node.h"
#include <cstdlib>
Node::Node() {
	//this->nextNode=NULL;

}

Node::Node(Node & n)
{
	this->coordinates=n.coordinates;
}

Node::~Node() {}

bool Node::equal(Node & n)
{
	if(*(this->coordinates)!=*(n.coordinates))
		return false;
	return true;
}



void Node::setCoordinates(double *v)
{
	this->coordinates=v;
}



void Node::setCoordValue(int i, double v)
{
	coordinates[i]=v;
}


double *Node::getCoordinates()
{
	return coordinates;
}



double Node::getCoordinate(int i)
{
	return coordinates[i];
}

void Node::setNextNode(Node *n)
{
	this->nextNode=n;
}



Node *Node::getNextNode()
{
	return nextNode;
}




